php maximum characters in text field

php maximum characters in text field

am 12.10.2007 16:41:15 von pvanbuskirk

------_=_NextPart_001_01C80CDD.F29F51B7
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Is there a maximum number of character $_POST will/can return from a
text field. I have an online form that was driving me nuts trying to
troubleshoot, as most orders were coming in fine, but this one would
not. I narrowed down to the length of the "customer description" field
which has no limits on the form or in the database. I was told there
was a limit to how much $_POST could return. Can someone advise?

=20

Thanks!

Trish


------_=_NextPart_001_01C80CDD.F29F51B7--

RE: php maximum characters in text field

am 12.10.2007 17:12:17 von Bastien Koert

--_cde90e45-3f50-49f7-868d-6171ae00ca33_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Unless you are using a text field (which holds 64K [mysql]) a normal varcha=
r maxs out at 255 characters
=20
Post is limited by the php.ini file amounts (usually in the megabyte range)=
..
=20
what is the size of the post?
=20
Bastien> Date: Fri, 12 Oct 2007 10:41:15 -0400> From: pvanbuskirk@otc.fsu.e=
du> To: php-db@lists.php.net> Subject: [PHP-DB] php maximum characters in t=
ext field> > Is there a maximum number of character $_POST will/can return =
from a> text field. I have an online form that was driving me nuts trying t=
o> troubleshoot, as most orders were coming in fine, but this one would> no=
t. I narrowed down to the length of the "customer description" field> which=
has no limits on the form or in the database. I was told there> was a limi=
t to how much $_POST could return. Can someone advise?> > > > Thanks!> > Tr=
ish>=20
____________________________________________________________ _____
Express yourself with free Messenger emoticons. Get them today!
http://www.freemessengeremoticons.ca/?icid=3DEMENCA122=

--_cde90e45-3f50-49f7-868d-6171ae00ca33_--

RE: php maximum characters in text field

am 12.10.2007 17:24:14 von pvanbuskirk

------_=_NextPart_001_01C80CE3.F3A8ACDD
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

The info he was trying to submit was 883 characters, including spaces
(counted in Word). Many times, people have very detailed descriptions
they need to send in. Can you think of a way to work around this
limitation? Also, what happened when he tried to submit is he got an
email back with "Undefined variable" errors wherever the database was
supposed to send back info, and no record was created.

=20

From: Bastien Koert [mailto:bastien_k@hotmail.com]=20
Sent: Friday, October 12, 2007 11:12 AM
To: VanBuskirk, Patricia; php-db@lists.php.net
Subject: RE: [PHP-DB] php maximum characters in text field

=20

Unless you are using a text field (which holds 64K [mysql]) a normal
varchar maxs out at 255 characters
=20
Post is limited by the php.ini file amounts (usually in the megabyte
range).
=20
what is the size of the post?
=20
Bastien

> Date: Fri, 12 Oct 2007 10:41:15 -0400
> From: pvanbuskirk@otc.fsu.edu
> To: php-db@lists.php.net
> Subject: [PHP-DB] php maximum characters in text field
>=20
> Is there a maximum number of character $_POST will/can return from a
> text field. I have an online form that was driving me nuts trying to
> troubleshoot, as most orders were coming in fine, but this one would
> not. I narrowed down to the length of the "customer description" field
> which has no limits on the form or in the database. I was told there
> was a limit to how much $_POST could return. Can someone advise?
>=20
>=20
>=20
> Thanks!
>=20
> Trish
>=20



________________________________

Express yourself with free Messenger emoticons. Get them today!
=20


------_=_NextPart_001_01C80CE3.F3A8ACDD--

RE: php maximum characters in text field

am 12.10.2007 17:26:15 von Bastien Koert

--_7e5e5d59-b297-48be-bb47-4a816bab9eb1_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable


And how is the table / field of interest configured? 833 will obviously not=
fit into a 255 varchar field...
=20
Bastien


Subject: RE: [PHP-DB] php maximum characters in text fieldDate: Fri, 12 Oct=
2007 11:24:14 -0400From: pvanbuskirk@otc.fsu.eduTo: bastien_k@hotmail.com;=
php-db@lists.php.net






The info he was trying to submit was 883 characters, including spaces (coun=
ted in Word). Many times, people have very detailed descriptions they need=
to send in. Can you think of a way to work around this limitation? Also,=
what happened when he tried to submit is he got an email back with =93Unde=
fined variable=94 errors wherever the database was supposed to send back in=
fo, and no record was created.
=20


From: Bastien Koert [mailto:bastien_k@hotmail.com] Sent: Friday, October 12=
, 2007 11:12 AMTo: VanBuskirk, Patricia; php-db@lists.php.netSubject: RE: [=
PHP-DB] php maximum characters in text field
=20
Unless you are using a text field (which holds 64K [mysql]) a normal varcha=
r maxs out at 255 characters Post is limited by the php.ini file amounts (u=
sually in the megabyte range). what is the size of the post? Bastien> Date:=
Fri, 12 Oct 2007 10:41:15 -0400> From: pvanbuskirk@otc.fsu.edu> To: php-db=
@lists.php.net> Subject: [PHP-DB] php maximum characters in text field> > I=
s there a maximum number of character $_POST will/can return from a> text f=
ield. I have an online form that was driving me nuts trying to> troubleshoo=
t, as most orders were coming in fine, but this one would> not. I narrowed =
down to the length of the "customer description" field> which has no limits=
on the form or in the database. I was told there> was a limit to how much =
$_POST could return. Can someone advise?> > > > Thanks!> > Trish>=20



Express yourself with free Messenger emoticons. Get them today!
____________________________________________________________ _____
R U Ready for Windows Live Messenger Beta 8.5? Try it today!
http://entertainment.sympatico.msn.ca/WindowsLiveMessenger=

--_7e5e5d59-b297-48be-bb47-4a816bab9eb1_--

RE: php maximum characters in text field

am 12.10.2007 17:42:25 von pvanbuskirk

------_=_NextPart_001_01C80CE6.7DE886F5
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

The field on the form is as such:

The confirmation page is: ?>

=20

From: Bastien Koert [mailto:bastien_k@hotmail.com]=20
Sent: Friday, October 12, 2007 11:26 AM
To: VanBuskirk, Patricia; php-db@lists.php.net
Subject: RE: [PHP-DB] php maximum characters in text field

=20

And how is the table / field of interest configured? 833 will obviously
not fit into a 255 varchar field...
=20
Bastien



________________________________

Subject: RE: [PHP-DB] php maximum characters in text field
Date: Fri, 12 Oct 2007 11:24:14 -0400
From: pvanbuskirk@otc.fsu.edu
To: bastien_k@hotmail.com; php-db@lists.php.net

The info he was trying to submit was 883 characters, including spaces
(counted in Word). Many times, people have very detailed descriptions
they need to send in. Can you think of a way to work around this
limitation? Also, what happened when he tried to submit is he got an
email back with "Undefined variable" errors wherever the database was
supposed to send back info, and no record was created.

=20

From: Bastien Koert [mailto:bastien_k@hotmail.com]=20
Sent: Friday, October 12, 2007 11:12 AM
To: VanBuskirk, Patricia; php-db@lists.php.net
Subject: RE: [PHP-DB] php maximum characters in text field

=20

Unless you are using a text field (which holds 64K [mysql]) a normal
varchar maxs out at 255 characters
=20
Post is limited by the php.ini file amounts (usually in the megabyte
range).
=20
what is the size of the post?
=20
Bastien

> Date: Fri, 12 Oct 2007 10:41:15 -0400
> From: pvanbuskirk@otc.fsu.edu
> To: php-db@lists.php.net
> Subject: [PHP-DB] php maximum characters in text field
>=20
> Is there a maximum number of character $_POST will/can return from a
> text field. I have an online form that was driving me nuts trying to
> troubleshoot, as most orders were coming in fine, but this one would
> not. I narrowed down to the length of the "customer description" field
> which has no limits on the form or in the database. I was told there
> was a limit to how much $_POST could return. Can someone advise?
>=20
>=20
>=20
> Thanks!
>=20
> Trish
>=20

________________________________

Express yourself with free Messenger emoticons. Get them today!
=20

=20

________________________________

R U Ready for Windows Live Messenger Beta 8.5? Try it today!
=20


------_=_NextPart_001_01C80CE6.7DE886F5--

RE: php maximum characters in text field

am 12.10.2007 19:54:42 von Bastien Koert

--_1f8142a7-1bd0-4371-b727-3f1c07d301d3_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Yes, that is the HTML and the PHP code to check. What about the php code t=
o go to the db?
=20
Bastien> Date: Fri, 12 Oct 2007 11:42:25 -0400> From: pvanbuskirk@otc.fsu.e=
du> To: bastien_k@hotmail.com; php-db@lists.php.net> Subject: RE: [PHP-DB] =
php maximum characters in text field> > The field on the form is as such: <=
TEXTAREA name=3D"Customer_Description"> cols=3D100 rows=3D10 tabindex=3D"44=
">> > The confirmation page is: cription']);> ?>> > > > From: Bastien Koert [mailto:bastien_k@hotmail.com] =
> Sent: Friday, October 12, 2007 11:26 AM> To: VanBuskirk, Patricia; php-db=
@lists.php.net> Subject: RE: [PHP-DB] php maximum characters in text field>=
> > > And how is the table / field of interest configured? 833 will obviou=
sly> not fit into a 255 varchar field...> > Bastien> > > > ________________=
________________> > Subject: RE: [PHP-DB] php maximum characters in text fi=
eld> Date: Fri, 12 Oct 2007 11:24:14 -0400> From: pvanbuskirk@otc.fsu.edu> =
To: bastien_k@hotmail.com; php-db@lists.php.net> > The info he was trying t=
o submit was 883 characters, including spaces> (counted in Word). Many time=
s, people have very detailed descriptions> they need to send in. Can you th=
ink of a way to work around this> limitation? Also, what happened when he t=
ried to submit is he got an> email back with "Undefined variable" errors wh=
erever the database was> supposed to send back info, and no record was crea=
ted.> > > > From: Bastien Koert [mailto:bastien_k@hotmail.com] > Sent: Frid=
ay, October 12, 2007 11:12 AM> To: VanBuskirk, Patricia; php-db@lists.php.n=
et> Subject: RE: [PHP-DB] php maximum characters in text field> > > > Unles=
s you are using a text field (which holds 64K [mysql]) a normal> varchar ma=
xs out at 255 characters> > Post is limited by the php.ini file amounts (us=
ually in the megabyte> range).> > what is the size of the post?> > Bastien>=
> > Date: Fri, 12 Oct 2007 10:41:15 -0400> > From: pvanbuskirk@otc.fsu.edu=
> > To: php-db@lists.php.net> > Subject: [PHP-DB] php maximum characters in=
text field> > > > Is there a maximum number of character $_POST will/can r=
eturn from a> > text field. I have an online form that was driving me nuts =
trying to> > troubleshoot, as most orders were coming in fine, but this one=
would> > not. I narrowed down to the length of the "customer description" =
field> > which has no limits on the form or in the database. I was told the=
re> > was a limit to how much $_POST could return. Can someone advise?> > >=
> > > > > Thanks!> > > > Trish> > > > ________________________________> > =
Express yourself with free Messenger emoticons. Get them today!> w.freemessengeremoticons.ca/?icid=3DEMENCA122> > > > > ____________________=
____________> > R U Ready for Windows Live Messenger Beta 8.5? Try it today=
!> >=20
____________________________________________________________ _____
Send a smile, make someone laugh, have some fun! Start now!
http://www.freemessengeremoticons.ca/?icid=3DEMENCA122=

--_1f8142a7-1bd0-4371-b727-3f1c07d301d3_--

RE: php maximum characters in text field

am 13.10.2007 18:54:37 von Juergen Wind

>varchar maxs out at 255 characters
just for clarification, mysql varchar easily can hold more than 255
characters
(I remember it was the case in ancient 3.x times)
only if one wants to store newlines he must use type "text"

just my 2 cent
--
View this message in context: http://www.nabble.com/php-maximum-characters-in-text-field-t f4614039.html#a13191426
Sent from the Php - Database mailing list archive at Nabble.com.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: php maximum characters in text field

am 15.10.2007 12:04:58 von Oskar

VanBuskirk, Patricia napsal(a):
> The info he was trying to submit was 883 characters, including spaces
> (counted in Word). Many times, people have very detailed descriptions
> they need to send in. Can you think of a way to work around this
> limitation? Also, what happened when he tried to submit is he got an
> email back with "Undefined variable" errors wherever the database was
> supposed to send back info, and no record was created.
>
>
I guess you are using get method of http request which is limited by
"maximum URL Length" (2083 chars in IE). Force the browser to use post
by

.

OKi98

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: php maximum characters in text field

am 15.10.2007 16:37:11 von Instruct ICC

--_284a67e2-959f-4b5f-abe9-a93225d748b4_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable


> >varchar maxs out at 255 characters
> just for clarification, mysql varchar easily can hold more than 255
> characters=20
> (I remember it was the case in ancient 3.x times)=20
> only if one wants to store newlines he must use type "text"
>=20
> just my 2 cent

News to me, so I check the docs.
http://dev.mysql.com/doc/refman/5.0/en/char.html

Apparently varchar can "easily" hold more than 255 chars IF YOU USE VERSION=
5.0.3 OR LATER.
"Values in VARCHAR columns are variable-length
strings. The length can be specified as a value from 0 to 255
before MySQL 5.0.3, and 0 to 65,535 in 5.0.3 and later versions."

We assume the OP is using if he is checking the $_PO=
ST variable. Good catch (OKi98) if he is not.

____________________________________________________________ _____
Windows Live Hotmail and Microsoft Office Outlook =96 together at last. =A0=
Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.asp x?pid=3DCL10062=
6971033=

--_284a67e2-959f-4b5f-abe9-a93225d748b4_--

RE: php maximum characters in text field

am 15.10.2007 18:48:16 von pvanbuskirk

I am starting to believe it is NOT the character length that is causing =
the problem. We have received other orders with more in it than that, =
and they came in ok. I think there may be something in the input that =
php does not like. I've been searching for code that will "clean up" =
input, possibly preg_replace?


-----Original Message-----
From: Instruct ICC [mailto:instructicc@hotmail.com]=20
Sent: Monday, October 15, 2007 10:37 AM
To: php-db@lists.php.net
Subject: RE: [PHP-DB] php maximum characters in text field


> >varchar maxs out at 255 characters
> just for clarification, mysql varchar easily can hold more than 255
> characters=20
> (I remember it was the case in ancient 3.x times)=20
> only if one wants to store newlines he must use type "text"
>=20
> just my 2 cent

News to me, so I check the docs.
http://dev.mysql.com/doc/refman/5.0/en/char.html

Apparently varchar can "easily" hold more than 255 chars IF YOU USE =
VERSION 5.0.3 OR LATER.
"Values in VARCHAR columns are variable-length
strings. The length can be specified as a value from 0 to 255
before MySQL 5.0.3, and 0 to 65,535 in 5.0.3 and later =
versions."

We assume the OP is using if he is checking the =
$_POST variable. Good catch (OKi98) if he is not.

____________________________________________________________ _____
Windows Live Hotmail and Microsoft Office Outlook - together at last. =
=A0Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.asp x?pid=3DCL100=
626971033

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: php maximum characters in text field

am 15.10.2007 19:05:27 von Instruct ICC

> I am starting to believe it is NOT the character length that is causing t=
he problem. We have received other orders with more in it than that, and th=
ey came in ok. I think there may be something in the input that php does no=
t like. I've been searching for code that will "clean up" input, possibly p=
reg_replace?

Was the order received, but the text was shorter than expected?
Or was the order not "received" at all?

Check your mysql query log. It may show failed queries where bad character=
s made the query fail, perhaps using ' or "?
Use mysql_real_escape_string.
____________________________________________________________ _____
Climb to the top of the charts!=A0 Play Star Shuffle:=A0 the word scramble =
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=3Dstarshuffle_wl mailtextlink_oc=
t=

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: php maximum characters in text field

am 15.10.2007 19:29:02 von pvanbuskirk

It isn't sending to MySql, we use FileMaker Pro 9. A new record did not =
get made in the d'base... the confirmation email went out, but wherever =
info was supposed to kick back from the d'base (ie. Order number), it =
showed an "undefined variable" error.

-----Original Message-----
From: Instruct ICC [mailto:instructicc@hotmail.com]=20
Sent: Monday, October 15, 2007 1:05 PM
To: php-db@lists.php.net
Subject: RE: [PHP-DB] php maximum characters in text field


> I am starting to believe it is NOT the character length that is =
causing the problem. We have received other orders with more in it than =
that, and they came in ok. I think there may be something in the input =
that php does not like. I've been searching for code that will "clean =
up" input, possibly preg_replace?

Was the order received, but the text was shorter than expected?
Or was the order not "received" at all?

Check your mysql query log. It may show failed queries where bad =
characters made the query fail, perhaps using ' or "?
Use mysql_real_escape_string.
____________________________________________________________ _____
Climb to the top of the charts!=A0 Play Star Shuffle:=A0 the word =
scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=3Dstarshuffle_wl mailtextlink_=
oct
--=20
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: php maximum characters in text field

am 15.10.2007 19:48:13 von Bastien Koert

--_f3c49e06-7f6c-449c-a9f9-5356a877c818_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Could it be an '&' ampersand in the data?
=20
Bastien> Date: Mon, 15 Oct 2007 13:29:02 -0400> From: pvanbuskirk@otc.fsu.e=
du> To: instructicc@hotmail.com; php-db@lists.php.net> Subject: RE: [PHP-DB=
] php maximum characters in text field> > It isn't sending to MySql, we use=
FileMaker Pro 9. A new record did not get made in the d'base... the confir=
mation email went out, but wherever info was supposed to kick back from the=
d'base (ie. Order number), it showed an "undefined variable" error.> > ---=
--Original Message-----> From: Instruct ICC [mailto:instructicc@hotmail.com=
] > Sent: Monday, October 15, 2007 1:05 PM> To: php-db@lists.php.net> Subje=
ct: RE: [PHP-DB] php maximum characters in text field> > > > I am starting =
to believe it is NOT the character length that is causing the problem. We h=
ave received other orders with more in it than that, and they came in ok. I=
think there may be something in the input that php does not like. I've bee=
n searching for code that will "clean up" input, possibly preg_replace?> > =
Was the order received, but the text was shorter than expected?> Or was the=
order not "received" at all?> > Check your mysql query log. It may show fa=
iled queries where bad characters made the query fail, perhaps using ' or "=
?> Use mysql_real_escape_string.> _________________________________________=
________________________> Climb to the top of the charts! Play Star Shuffl=
e: the word scramble challenge with star power.> http://club.live.com/star=
_shuffle.aspx?icid=3Dstarshuffle_wlmailtextlink_oct> -- > PHP Database Mail=
ing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/u=
nsub.php> > -- > PHP Database Mailing List (http://www.php.net/)> To unsubs=
cribe, visit: http://www.php.net/unsub.php>=20
____________________________________________________________ _____
Express yourself with free Messenger emoticons. Get them today!
http://www.freemessengeremoticons.ca/?icid=3DEMENCA122=

--_f3c49e06-7f6c-449c-a9f9-5356a877c818_--

Re: php maximum characters in text field

am 15.10.2007 20:06:10 von Oskar

VanBuskirk, Patricia napsal(a):
> It isn't sending to MySql, we use FileMaker Pro 9. A new record did not get made in the d'base... the confirmation email went out, but wherever info was supposed to kick back from the d'base (ie. Order number), it showed an "undefined variable" error.
>
> -----Original Message-----
> From: Instruct ICC [mailto:instructicc@hotmail.com]
> Sent: Monday, October 15, 2007 1:05 PM
> To: php-db@lists.php.net
> Subject: RE: [PHP-DB] php maximum characters in text field
>
>
>
>> I am starting to believe it is NOT the character length that is causing the problem. We have received other orders with more in it than that, and they came in ok. I think there may be something in the input that php does not like. I've been searching for code that will "clean up" input, possibly preg_replace?
>>
>
> Was the order received, but the text was shorter than expected?
> Or was the order not "received" at all?
>
> Check your mysql query log. It may show failed queries where bad characters made the query fail, perhaps using ' or "?
> Use mysql_real_escape_string.
> ____________________________________________________________ _____
> Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlma iltextlink_oct
>
post the code (form + script that proccesses passed variables +
print_r($_POST) ), it'll make the things much quicker.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: php maximum characters in text field

am 15.10.2007 20:41:32 von pvanbuskirk

FORM PAGE:


The FSU Office of Telecommunications || Departmental<br /> Order Form













aLink=3D#990000 onLoad=3D"cookieForms('open', 'form')"
onUnload=3D"cookieForms('save', 'form')">


sans-serif"> src=3D"images/tsrbanner2.jpg" width=3D"625" height=3D"65"> =20
cellspacing=3D"0"
bgcolor=3D"#990000">



bgcolor=3D"#FFFFCC">

Helvetica,
sans-serif">If you DO NOT have=20
an FSU OMNI NUMBER & need to receive an invoice, click href=3D"http://www2.otc.fsu.edu/Forms/TSR/OA_Order_Form.php" >HERE


cellspacing=3D"0"
bordercolor=3D"#CC0000">=20






size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">


target=3D"_blank"> src=3D"http://image.providesupport.com/image/otc.gif" alt=3D"Live Chat"
border=3D"0">


nowrap> width=3D"200" border=3D"0" cellpadding=3D"3" cellspacing=3D"0">
Helvetica,
sans-serif">To request repairs,

please use our

Online Repair Form
Helvetica, sans-serif"> href=3D"http://www2.otc.fsu.edu/Forms/Repair/Repair_Form.php "> src=3D"images/btn-repair-sm.gif" alt=3D"Go to Repair Form" width=3D"65"
height=3D"30" border=3D"0">

=20


enctype=3D"multipart/form-data" name=3D"form" onSubmit=3D"return =
v.exec()">

block;">


cellspacing=3D"6">







face=3D"Verdana,
Arial, Helvetica, sans-serif"> alt=3D"Note icon" width=3D"15" height=3D"15">

face=3D"Verdana,
Arial, Helvetica, sans-serif">If you rely on the AUTOFILL/SAVED INFO
("cookies") feature on this form, please note that you will
need to reselect from the dropdown fields each time.
size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif"> color=3D"#CC0000">HINT:  By =
typing
the first few letters of a drop-down list, the selection will
"jump" to that area of the list!

size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">Click

name=3D"reset2">


to clear all
border=3D"1" bordercolor=3D"#999999" cellspacing=3D"0" =
cellpadding=3D"3">
face=3D"Verdana, Arial, Helvetica, sans-serif"> src=3D"images/stargreens.gif" alt=3D"Required" align=3D"absmiddle">
=3D Required!



cellspacing=3D"0"
bgcolor=3D"#CCCCCC">



size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif" =
class=3D"style15">Contact
Information
face=3D"Verdana,
Arial, Helvetica, sans-serif">

To be filled out by the person in the department who
will coordinate completion of the order

cellpadding=3D"3">
=20










size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Contact =
Name:
3D"Required href=3D"http://www.otc.fsu.edu/TSR_Help.html#1"> src=3D"images/tipblue.gif" alt=3D"Access Help Files"
border=3D"0">
  

tabindex=3D"1">


id=3D"t_Contact_Phone"> size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Contact =
Phone:
3D"Required href=3D"http://www.otc.fsu.edu/TSR_Help.html#3" =
target=3D_blank> src=3D"images/tipblue.gif" alt=3D"Access Help Files" =
border=3D"0">


tabindex=3D"2">
face=3D"Verdana, Arial, Helvetica, sans-serif">Contact E-mail: src=3D"images/stargreens.gif" alt=3D"Required Field!"> href=3D"http://www.otc.fsu.edu/TSR_Help.html#2"> src=3D"images/tipblue.gif" alt=3D"Access Help Files" =
border=3D"0">



maxlength=3D"50">
face=3D"Verdana, Arial, Helvetica, sans-serif">Contact =
Rm:  
tabindex=3D"4">
3D"Required<br Field!">
  sans-serif">NOTE: Enter multiple email addresses
by separating them=20
with a semi-colon (; )

cellspacing=3D"1">



face=3D"Verdana, Arial, Helvetica, sans-serif">Contact
Bldg/Location:
Helvetica,
sans-serif">3D"Required Field!"
/> 3D"note height=3D"15" />

cellspacing=3D"1">








 

face=3D"Verdana,
Arial, Helvetica, sans-serif">Choose from List color=3D"#990000">
(If NOT LISTED, BE SURE to type in below!)
:  

  

3D"clear width=3D"15" height=3D"1" /> Helvetica, sans-serif">      color=3D"#990000">OR Type in here: 

id=3D"Contact_Bldg_Unlisted" tabindex=3D"6" size=3D"60" maxlength=3D"60" =
/>

cellspacing=3D"0"
bordercolor=3D"#660000">



class=3D"style15"> face=3D"Verdana, Arial, Helvetica, sans-serif">Department Billing
Contact Information
Arial, Helvetica, sans-serif">

The Department Budget
Representative from the Authorized Budget Signature List in
OMNI

cellspacing=3D"1">



face=3D"Verdana, Arial, Helvetica, sans-serif">Department
Name:
sans-serif">3D"Required Field!"
/> 3D"note height=3D"15" />

cellspacing=3D"1">








 

face=3D"Verdana,
Arial, Helvetica, sans-serif">Choose from List color=3D"#990000">
(If NOT LISTED, BE SURE to type in below!)
:  

     


3D"clear width=3D"15" height=3D"1" /> Helvetica, sans-serif">      color=3D"#990000">OR Type in here: 

id=3D"Department_Unlisted"
tabindex=3D"8" size=3D"60" maxlength=3D"60" />

cellpadding=3D"2">




=20



id=3D"t_Budget_Auth_Signature"> Helvetica, sans-serif">Budget Authorized Signature/Manager Name:

3D"Required
href=3D"http://www.otc.fsu.edu/TSR_Help.html#1"> src=3D"images/tipblue.gif" alt=3D"Access Help Files" =
border=3D"0">

 
name=3D"Budget_Auth_Signature"
tabindex=3D"9">
face=3D"Verdana, Arial, Helvetica, sans-serif">Budget Manager Phone
#:

3D"Required<br Field!">
 
tabindex=3D"10">
id=3D"t_Budget_Email_Address"> size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Budget Mgr
E-Mail Address: href=3D"http://www.otc.fsu.edu/TSR_Help.html#9" =
target=3D_blank> src=3D"images/tipblue.gif" alt=3D"Access Help Files"
border=3D"0">


3D"Required Field!">
 
name=3D"Budget_Email_Address"
tabindex=3D"11">

 

borderColor=3D#660000
bgcolor=3D"#660000">





class=3D"style15"> sans-serif">Budget (OMNI) Information

cellspacing=3D"0">











bgcolor=3D"#FFDDDD"
scope=3D"row"> Helvetica, sans-serif">NOTES REGARDING SUBMITTED
BUDGET NUMBERS:
scope=3D"row"> color=3D"#660000" size=3D"3" face=3D"Georgia, Times New Roman, Times, =
serif">*
scope=3D"row">

Arial,
Helvetica, sans-serif"> The "Official" Budget Manager, as
pulled from FSU's OMNI System, will be informed via email of this order.

color=3D"#660000" size=3D"3" face=3D"Georgia, Times New Roman, Times, =
serif">
*

size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">One-Time =
(non-recurring)
charges will appear on the charge detail of the phone line for the above
mentioned Budget Manager.


cellspacing=3D"0"
bordercolor=3D"#660000">
bgcolor=3D"#dece9c">





Helvetica, sans-serif">ALL CHARG size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">ES src=3D"images/stargreens.gif" alt=3D"Required Field!">

(Monthly & 1-Time)
Helvetica, sans-serif">OPTIONAL

1-Time Charges
























face=3D"Verdana,
Arial, Helvetica, sans-serif">
id=3D"Budget_Rec_DeptID"
tabindex=3D"12" size=3D9 maxlength=3D6 onKeyUp=3D"return autoTab(this, =
6,
event);">
Helvetica,
sans-serif">
id=3D"Budget_Rec_FundCode" tabindex=3D"13" size=3D5 maxlength=3D3
onKeyUp=3D"return autoTab(this, 3, event);" />
1
Helvetica,
sans-serif">
id=3D"Budget_Rec_Project"
tabindex=3D"14" value=3D"000000000" size=3D12 maxlength=3D9>
id=3D"t_Budget_Rec_DeptID"> Helvetica,
sans-serif"> Dept ID
id=3D"t_Budget_Rec_FundCode">

Helvetica, sans-serif">Fund Code

id=3D"t_Budget_Rec_Project"> size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Project*
id=3D"t_Budget_Rec_DeptID"> Helvetica,
sans-serif">(6 digits)
id=3D"t_Budget_Rec_FundCode"> Helvetica, sans-serif"> (3 digits) id=3D"t_Budget_Rec_Project"> size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">*If N/A, leave =
9
ZEROs;

all others enter 6-digits

(NO construction here)
width=3D"100%" border=3D"0" cellpadding=3D"4" cellspacing=3D"0"
bordercolor=3D"#660000" bgcolor=3D"#FFFFCC">
face=3D"Verdana, Arial, Helvetica,
sans-serif">Optional href=3D"http://www.otc.fsu.edu/TSR_Help.html#cf">

Chartfields

href=3D"http://www.otc.fsu.edu/TSR_Help.html#cf"> src=3D"images/tipblue.gif" alt=3D"Access Help Files"
border=3D"0">


size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">
=20
1.



2.



3.
=20

size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Chartfields =
can
ONLY be applied to monthly (recurring), NOT 1-time (non-recurring)
or construction charges.

cellpadding=3D"5">




Arial,
Helvetica, sans-serif">1
Helvetica, sans-serif">If Fund Code begins with "5" (Sponsored
Research), a 6-digit Project must be entered (type over zeros).


Arial,
Helvetica, sans-serif">Complete this side ONLY i color=3D"#000000">f
face=3D"Verdana, Arial, Helvetica, sans-serif">Budget (OMNI) information
differs from left side OR if order is for
construction*


cellpadding=3D"3" cellspacing=3D"0" bordercolor=3D"#990000">



size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">*CONSTRUCTION =
PROJECTS:


If order is construction, complete LEFT side with


NON-CONSTRUCTION budget number AND

ALSO enter construction budget below.

sans-serif">













Arial,
Helvetica, sans-serif">
id=3D"Budget_NR_DeptID"
tabindex=3D"18" size=3D9 maxlength=3D6 onKeyUp=3D"return autoTab(this, =
6,
event);">
sans-serif">
id=3D"Budget_NR_FundCode" tabindex=3D"19" size=3D5 maxlength=3D3 =
onKeyUp=3D"return
autoTab(this, 3, event);">
sans-serif">
id=3D"Budget_NR_Project"
tabindex=3D"20" size=3D12 maxlength=3D9>
size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">Dept ID

(6 digits)
face=3D"Verdana,
Arial, Helvetica, sans-serif">Fund Code

(3 digits)
Arial,
Helvetica, sans-serif">Project (if applicable)

*If N/A, enter 9 ZEROs;

9 digits for Construction;

all others enter 6-digits



cellspacing=3D"0"
borderColor=3D#660000 bgcolor=3D"#660000">





size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Service
Information

This section pertains to services you requested

cellspacing=3D"1">



face=3D"Verdana, Arial, Helvetica, sans-serif">Service Building
Address: 3D"Required =
href=3D"http://www.otc.fsu.edu/TSR_Help.html#12"=20
target=3D"_blank">3D"Access Help
Files" border=3D"0" />
 

cellspacing=3D"1">








 

face=3D"Verdana,
Arial, Helvetica, sans-serif">Choose from List color=3D"#990000">
(If NOT LISTED, BE SURE to type in below!)
:  

     
alt=3D"note icon" width=3D"15" height=3D"15" />

3D"clear width=3D"15" height=3D"1" /> Helvetica, sans-serif">      color=3D"#990000">OR Type in here: 

id=3D"Service_Bldg_Unlisted" tabindex=3D"22" size=3D"60" =
maxlength=3D"60" />

cellpadding=3D"2">



id=3D"t_Service_Location_Rm"> Helvetica, sans-serif"> alt=3D"Required
Field!">Service Rm Number:  
size=3D"12"
maxlength=3D10>



=20




cellspacing=3D"0" bordercolor=3D"#660000">



















size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">Please =
check
all services that apply


Be sure to include the details in the "Details of
Work" box below!
valign=3D"top">

cellpadding=3D"3">














































size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">VOICE
SERVICES
Arial, Helvetica, sans-serif">
type=3D"checkbox"
id=3D"BasicSvc_Features" tabindex=3D"24" value=3D"Basic Service =
Features"
onClick=3D"alert('If you will be requiring installation or relocation of
phone jack/outlet, please check box under WIRING REQUIRED below')">
face=3D"Verdana,
Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/BSOffer.html "
target=3D"_blank">Basic Telephone Service/

href=3D"http://www.otc.fsu.edu/Department/Offer/FCCoffer.htm l"
target=3D"_blank">Custom Calling Features
face=3D"Verdana, Arial, Helvetica, sans-serif">
id=3D"Instrument" tabindex=3D"25" value=3D"Instrument">
face=3D"Verdana, Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/IOffer.html"
target=3D"_blank">Instruments/Equipment
face=3D"Verdana,
Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/OLDOffer.htm l"
target=3D"_blank">Long Distance Options
Helvetica, sans-serif">
name=3D"Number_800" tabindex=3D"26">
bgcolor=3D"#F0F0F0"> sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/OLDOffer.htm l#800number"
target=3D"_blank">800 Number
Helvetica, sans-serif">
name=3D"Calling_Card" tabindex=3D"27">
face=3D"Verdana, Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/OLDOffer.htm l#callingcard=
"
target=3D"_blank">Calling Card
Helvetica, sans-serif">
tabindex=3D"28" value=3D"Class Of Service Change">
face=3D"Verdana, Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/BSOffer.html #dc"
target=3D"_blank">Class of Service

Dialing abilities (29)
Helvetica, sans-serif">
id=3D"Auth_Code" tabindex=3D"29" value=3D"Authorization Code">
face=3D"Verdana, Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/OLDOffer.htm l"
target=3D"_blank">Auth Code Change
size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">
order
must contain the following information: Phone number on which to place
voice mail; Attendant phone number; Class of Service; Size/Type of Box;
and User name.')" type=3Dcheckbox value=3D"Voice Mail" tabindex=3D"30"
name=3D"Voice_Mail">
size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/VMOffer.html "
target=3D"_blank">Voice Mail
face=3D"Verdana,
Arial, Helvetica, sans-serif">
face=3D"Verdana, Arial, Helvetica, sans-serif">
Voicemail
Passcode" name=3D"VM_Passcode_Reset" tabindex=3D"31">
Reset Voice Mail Passcode (only)
Helvetica, sans-serif">
id=3D"Meet_Me"
tabindex=3D"32" value=3D"Meet-Me-Conference">
Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/MMCOffer.htm l"
target=3D"_blank">Meet-Me Conference (Up to 30
participants)
Helvetica, sans-serif">
Cellular Purchase. By submitting an online order for a Cellular Purchase
you recognize that each department and respective department heads are
responsible for all cellular phone charges incurred. Cellular phones are
to be used only for University and State business.')" tabindex=3D"33"
type=3Dcheckbox value=3D"Cellular Service" name=3D"Cellular_Service">
Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/WSOffer.html "
target=3D"_blank">Cellular/Wireless Service (includes cellular, =
PDA's,
connection cards, pagers, radios)

valign=3D"top">

cellspacing=3D"0"
cellpadding=3D"3">











size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">VIDEO
SERVICES
face=3D"Verdana,
Arial, Helvetica, sans-serif">
you
will be requiring installation or relocation of cable jack/outlet,
please check box under WIRING REQUIRED below')" value=3D"Seminole
Cablevision (SCV)" name=3D"SCV" tabindex=3D"34">
face=3D"Verdana,
Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/SCVOffer.htm l">Cable TV
Service (Seminole CableVision)
Helvetica, sans-serif">
Conference" name=3D"Video_Conference" tabindex=3D"35">
Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/VCOffer.html ">Video
Conference/Room & Polycom Rental

cellpadding=3D"4"
cellspacing=3D"0">


















size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">DATA
SERVICES
face=3D"Verdana,
Arial, Helvetica, sans-serif">
type=3D"checkbox" id=3D"Networking" onClick=3D"alert('If you will be =
requiring
installation or relocation of network jack/outlet, please check box
under WIRING REQUIRED below')" value=3D"Networking Services">
face=3D"Verdana,
Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Networking/NetMenu.html">Netw orking
Setup/Configuration
face=3D"Verdana,
Arial, Helvetica, sans-serif">High Speed Internet Access
(off-campus)
Helvetica, sans-serif">
id=3D"DSL"
tabindex=3D"37" onClick=3D"alert('If you will be requiring installation =
or
relocation of DSL jack/outlet, please check box under WIRING REQUIRED
below')" value=3D"Digital Subscriber Lines (Dept)">
Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/InternetOffe r.html#dsl">F=
S
U@Home (DSL)
Helvetica, sans-serif">
tabindex=3D"38"
onClick=3D"alert('If you will be requiring installation or relocation of
Cable Internet jack/outlet, please check box under WIRING REQUIRED
below')" type=3D"checkbox" id=3D"Cable_Internet" value=3D"Cable =
Internet">
Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/InternetOffe r.html#cable"=
>
Cable Internet

cellspacing=3D"0"
cellpadding=3D"3">







bgcolor=3D"#CCCCCC"> sans-serif">BUILDING ACCESS/SECURITY
face=3D"Verdana,
Arial, Helvetica, sans-serif">
type=3D"checkbox"
id=3D"Access_System" tabindex=3D"39" onClick=3D"alert('If you will be
requiring installation or relocation of alarm and/or card reader, please
check box under WIRING REQUIRED below')" value=3D"Access Security =
System">
face=3D"Verdana,
Arial, Helvetica, sans-serif"> href=3D"http://www.otc.fsu.edu/Department/Offer/ACSSOffer.ht ml">Access
(Card), href=3D"http://www.otc.fsu.edu/Department/Offer/CCTVOffer.ht ml">CCTV,=

Alarms & Monitoring

cellpadding=3D"4"
cellspacing=3D"0">











size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif">BILLING =
&
INFORMATION UPDATES
face=3D"Verdana,
Arial, Helvetica, sans-serif">
Information Change" name=3D"Budget_Info_Change" tabindex=3D"40">
face=3D"Verdana,
Arial, Helvetica, sans-serif">Budget Changes
Helvetica, sans-serif">
type=3D"checkbox" tabindex=3D"41" value=3D"Information Change">
Helvetica, sans-serif">Name, Location, Chart Field Changes

size=3D"1" face=3D"Verdana, Arial, Helvetica, =
sans-serif">MISCELLANEOUS
OPTIONS (APPLIES TO ALL ABOVE)
width=3D"100%"
cellpadding=3D"3" cellspacing=3D"0">







face=3D"Verdana, Arial, Helvetica, sans-serif"> WIRING
REQUIRED
Helvetica,
sans-serif">
id=3D"Wiring"
tabindex=3D"42" value=3D"Phone PC CATV Wiring">
Helvetica, sans-serif">Check if ANY part of this order requires
installation or relocation of phone, computer or cable jack/outlet,
alarm/card reader, etc.

cellspacing=3D"0"
cellpadding=3D"3">







size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">TO CANCEL/DISCONNECT
SERVICES
Helvetica, sans-serif">3D"Access Help
Files" width=3D18 height=3D18>
Helvetica, sans-serif">Check service box above & explain under
"Details of Work" below, including disconnect
date.
width=3D"100%"
cellpadding=3D"3" cellspacing=3D"0">







face=3D"Verdana, Arial, Helvetica, sans-serif">ESTIMATE
ONLY
face=3D"Verdana,
Arial, Helvetica, sans-serif"> =09
id=3D"Estimate-checked" tabindex=3D"43" value=3D"ESTIMATE ONLY">
Helvetica, sans-serif"> Check if an estimate is required BEFORE
processing order

cellspacing=3D"0"
cellpadding=3D"3">







size=3D"1"
face=3D"Verdana, Arial, Helvetica, sans-serif">TO VOID AN ENTIRE
ORDER
Helvetica, sans-serif">3D"Access Help
Files" width=3D18 height=3D18>
Helvetica, sans-serif"> Email target=3D"_blank">orders@otc.fsu.edu & provide TSR Order
Number
id=3D"t_Customer_Description"> Helvetica, sans-serif">DETAILS OF WORK src=3D"images/stargreens.gif" alt=3D"Required Field!">

(Please try to be as specific as
possible) 
size=3D"1" face=3D"Verdana, Arial, Helvetica, sans-serif"> ** If =
color=3D"#990000">special due date needed other than the
10-business-day standard turnaround, explain here ** size=3D"2">








cellpadding=3D"6"
cellspacing=3D"0">









Helvetica, sans-serif">Click the Send button
only ONCE!


It may take several moments to process
information.

id=3D"new_record" tabindex=3D"45" value=3D"Send Form to OTC">
face=3D"Verdana,
Arial, Helvetica, sans-serif">
tabindex=3D"46"
name=3D"reset">
Helvetica, sans-serif"> 3D"Access Help
Files" border=3D"0">  href=3D"http://www.otc.fsu.edu/Department/OrderInfo.html"
target=3D"_blank">What happens after I place my Order?

sans-serif">For questions, comments or technical difficulties on this
form, email href=3D"mailto:help@otc.fsu.edu">help@otc.fsu.edu





=20

=20




PROCESS PAGE:


require_once('../FX/FX.php');

$newRecordArray =3D array('Contact_Name' =3D> $_POST['Contact_Name'],
'Contact_Phone' =3D> $_POST['Contact_Phone'],'Contact_Email' =3D>
$_POST['Contact_Email'],'Contact_Room' =3D>
$_POST['Contact_Room'],'Contact_Bldg_Unlisted' =3D>
$_POST['Contact_Bldg_Unlisted'],'Department_Unlisted' =3D>
$_POST['Department_Unlisted'],'Budget_Auth_Signature' =3D>
$_POST['Budget_Auth_Signature'],'Budget_Phone' =3D>
$_POST['Budget_Phone'],'Budget_Email_Address' =3D>
$_POST['Budget_Email_Address'],'Budget_Rec_DeptID' =3D>
$_POST['Budget_Rec_DeptID'],'Budget_Rec_FundCode' =3D>
$_POST['Budget_Rec_FundCode'],'Budget_Rec_Project' =3D>
$_POST['Budget_Rec_Project'],'Budget_NR_DeptID' =3D>
$_POST['Budget_NR_DeptID'],'Budget_NR_FundCode' =3D>
$_POST['Budget_NR_FundCode'],'Budget_NR_Project' =3D>
$_POST['Budget_NR_Project'],'Service_Bldg_Unlisted' =3D>
$_POST['Service_Bldg_Unlisted'],'Service_Location_Rm' =3D>
$_POST['Service_Location_Rm'],'Customer_Description' =3D>
$_POST['Customer_Description']);

// configure a connection to FileMaker Server Advanced
$ordersQuery =3D new FX('www2.otc.fsu.edu', '80', 'FMPro7');
// set database and layout information
$ordersQuery->SetDBData('WEB_Forms.fp7', 'Orders_FormView');
// set database username and password
$ordersQuery->SetDBUserPass('***', '***');
// retrieve all records in this database available to the current user
// add parameter array for new record
$ordersQuery->AddDBParamArray($newRecordArray);
// Add pararameters for the checkboxes. This allows some to be not
checked without an error.
$checkBoxes =3D
array('BasicSvc_Features','Instrument','Number_800','Calling _Card','COS'
,'Auth_Code','Voice
Mail','VM_Passcode_Reset','Meet_Me','Cellular_Service','SCV' ,'Video_Conf
erence','Networking','DSL','Cable_Internet','Access_System', 'Budget_Info
_Change','Information_Change','Wiring', 'Estimate');

foreach($checkBoxes as $checkBox) {
if(isset($_POST[$checkBox])) {
$ordersQuery->AddDBParam($checkBox, $_POST[$checkBox]);
}
}

// Add pararameters for the drop-down lists. This allows some to be
empty without an error.
$dropBoxes =3D
array('Contact_Bldg','Department_Name','Service_Location_Bld g','ChartFie
ld_1','ChartField_2','ChartField_3');
foreach($dropBoxes as $dropBox) {
if(isset($_POST[$dropBox])) {
$ordersQuery->AddDBParam($dropBox, $_POST[$dropBox]);
}
}

$orders =3D $ordersQuery->DoFXAction(FX_ACTION_NEW);
foreach ($orders as $order);

?>

//define the receiver of the email
$to =3D ($order['BudgetMgrEmail_OMNI_REC'].', =
'.$_POST['Contact_Email'].',
'.$_POST['Budget_Email_Address'].', CustomerCare@otc.fsu.edu');
//define the subject of the email
$subject =3D 'Online TSR Order Number '.$order['Order_Number'];=20
//create a boundary string. It must be unique=20
//so we use the MD5 algorithm to generate a random hash
$random_hash =3D md5(date('r', time()));=20
//define the headers we want passed. Note that they are separated with
\r\n
$headers =3D "From: Orders@otc.fsu.edu\r\nReply-To:
Customer_Care@otc.fsu.edu\r\nbcc: otconlineorders@otc.fsu.edu";
//add boundary string and mime type specification
$headers .=3D "\r\nContent-Type: multipart/alternative;
boundary=3D\"PHP-alt-".$random_hash."\"";=20
//define the body of the message.
ob_start(); //Turn on output buffering

?>
--PHP-alt- Content-Type: text/plain;
charset=3D"iso-8859-1"=20
Content-Transfer-Encoding: 7bit
           =20
Hello!

IMPORTANT: Do not reply to this email, it is not monitored. Direct
inquires to Customer_Care@otc.fsu.edu

This is an auto-generated confirmation to the email addresses submitted
as either the budget authority and/or contact for the following Office
of Telecommunications Online Order. =20

IF APPROVED, NO ACTION IS REQUIRED!! If not approved, send an email to
Customer_Care@otc.fsu.edu to deny this request within 3 business days.

**** Construction projects cannot be used for recurring
charges.

Completion of this request will be coordinated through you by your
consultant (10 business day average turnaround; some exceptions apply.)
Additional information should be sent to Customer_Care@otc.fsu.edu.

--------------------
Need Assistance?

Online:
- Getting Started: http://www.otc.fsu.edu/GS.html
- Department Menu: http://www.otc.fsu.edu/Department/DeptMenu.html
(Look for the link to Instructions)
- OTC Home: http://www.otc.fsu.edu/

In Person: 105 Rod K. Shaw Building (On the corner of Call and Dewey) By
Phone: 644-HELP
Email: Customer_Care@otc.fsu.edu

Thank you again for the opportunity to be of service.

=20
--PHP-alt- =20
Content-Type: text/html; charset=3D"iso-8859-1"=20
Content-Transfer-Encoding: 7bit

cellspacing=3D"0">








































face=3D"Verdana, Arial, Helvetica, sans-serif">IMPORTANT: Do not
reply to this email, it is not monitored. Direct inquires to href=3D"maito:Customer_Care@otc.fsu.edu">Customer_Care@otc.f su.edu O
NT>.



sans-serif">This
is an auto-generated confirmation to the email addresses submitted as
either the budget authority and/or contact for the following Office of
Telecommunications Online Order.





sans-serif">BUDGET AUTHORITY APPROVAL:



  • sans-serif">Budget Authorized Signature Submitted: ($_POST['Budget_Auth_Signature']); ?>

  • sans-serif">OMNI Specified Budget Manager(s):

    • sans-serif">Monthly - ?>

    • sans-serif">One-Time - ?>



=20

sans-serif">IF
APPROVED, NO ACTION IS REQUIRED!! If not approved, send an email to href=3D"maito:Customer_Care@otc.fsu.edu">Customer_Care@otc.f su.edu =
to
deny this request within 3 business days.
=20


sans-serif">*NOTE: Construction projects cannot be used for
recurring (monthly) charges!

Helvetica,
sans-serif">ORDER
INFORMATION:       color=3D"#990000">        
if(isset($_POST['Estimate'])){
echo ($_POST['Estimate']);
}
?>
Helvetica, sans-serif">Order Number:  face=3D"Verdana, Arial,
Helvetica, sans-serif"> ?>
face=3D"Verdana,
Arial, Helvetica, sans-serif">Your Consultant: 

3D"spacer" width=3D"200"
height=3D"1">
Arial,
Helvetica, sans-serif"> ?>
face=3D"Verdana,
Arial, Helvetica, sans-serif">CONTACT
INFORMATION: 
Arial,
Helvetica, sans-serif">Completion of this request will be coordinated
through you by your consultant (10 business day average turnaround; some
exceptions apply.) Additional information should be sent to href=3D"maito:Customer_Care@otc.fsu.edu">Customer_Care@otc.f su.edu. F
ONT>
Helvetica, sans-serif">Contact Name:  Helvetica,
sans-serif">
sans-serif">  Helvetica,
sans-serif">Contact E-mail: 
Helvetica,
sans-serif">
Helvetica, sans-serif">Contact Room:  Helvetica,
sans-serif">
Helvetica, sans-serif">Contact Bldg/Location:  Helvetica,
sans-serif">
if (isset($_POST['Contact_Bldg'])) {=20
echo ($_POST['Contact_Bldg']);
}
if (isset($_POST['Contact_Bldg_Unlisted'])) {=20
echo ('
'.$_POST['Contact_Bldg_Unlisted']);
}
?>
Helvetica, sans-serif">Contact Phone: 

3D"spacer" width=3D"200"
height=3D"1">
Arial,
Helvetica, sans-serif"> ?>

cellspacing=3D"0">






























Helvetica,
sans-serif">DEPARTMENT BILLING INFORMATION:
face=3D"Verdana,
Arial, Helvetica, sans-serif">Department Name: 
face=3D"Verdana, Arial,
Helvetica, sans-serif">
if
(isset($_POST['Department_Name'])) {=20
echo
($_POST['Department_Name']);
}
if
(isset($_POST['Department_Unlisted'])) {=20
echo
('
'.$_POST['Department_Unlisted']);
}
?>
Arial,
Helvetica, sans-serif">Budget Manager/

Authorized Signature: 
face=3D"Verdana, Arial,
Helvetica, sans-serif"> ?>
face=3D"Verdana,
Arial, Helvetica, sans-serif">Budget Mgr Phone
No: 
face=3D"Verdana, Arial,
Helvetica, sans-serif"> ?>
face=3D"Verdana,
Arial, Helvetica, sans-serif">Budget Mgr E-Mail: 

3D"spacer" height=3D"1">
Arial,
Helvetica, sans-serif"> ?>

face=3D"Verdana,
Arial, Helvetica, sans-serif">The following information was pulled
from FSU's OMNI System. The Budget Manager listed below will be informed
via email of this order. If this information is incorrect, please report
it to your Budget Manager immediately.

face=3D"Verdana,
Arial, Helvetica, sans-serif">Budget Manager in OMNI--

MONTHLY: 
bgcolor=3D"#F2F2F2"> Helvetica,
sans-serif"> - echo ($order['BudgetMgrEmail_OMNI_REC']); ?>
face=3D"Verdana, Arial, Helvetica, sans-serif">ONE-TIME
 (if applicable)


3D"spacer" height=3D"1">
bgcolor=3D"#F2F2F2"> Helvetica,
sans-serif"> - echo ($order['BudgetMgrEmail_OMNI_NR']); ?>

cellspacing=3D"0">



























face=3D"Verdana,
Arial, Helvetica, sans-serif"> MONTHLY CHARGE INFORMATION
sans-serif"
size=3D"2">OMNI Fund Code: 
sans-serif"
size=3D"2">
Helvetica,
sans-serif">Department ID: 
sans-serif"
size=3D"2">
Helvetica,
sans-serif">Project Code
sans-serif"
size=3D"2">
Helvetica,
sans-serif">Chartfield 1: 
Helvetica,
sans-serif">
=09
if(isset($_POST['ChartField_1'])){
echo
($_POST['ChartField_1']);=20
}
?>
Helvetica,
sans-serif">Chartfield 2: 
Helvetica,
sans-serif">
=09
if(isset($_POST['ChartField_2'])){
echo
($_POST['ChartField_2']);=20
}
?>
Helvetica,
sans-serif">Chartfield 3: 
Helvetica,
sans-serif">
=09
if(isset($_POST['ChartField_3'])){
echo
($_POST['ChartField_3']);=20
}
?>

cellspacing=3D"0">















face=3D"Verdana,
Arial, Helvetica, sans-serif"> ONE-TIME CHARGE INFORMATION
Helvetica,
sans-serif">OMNI Fund Code: 
sans-serif"
size=3D"2">
Helvetica,
sans-serif">Department ID: 
sans-serif"
size=3D"2">
Helvetica,
sans-serif">Project Code
sans-serif"
size=3D"2">

cellspacing=3D"0">























Helvetica,
sans-serif">SERVICE INFORMATION: 
Helvetica,
sans-serif">Service Building Address: 
Helvetica,
sans-serif">
if (isset($_POST['Service_Location_Bldg'])) {=20
echo ($_POST['Service_Location_Bldg']);
}
if (isset($_POST['Service_Location_Unlisted'])) {=20
echo
('
'.$_POST['Service_Location_Unlisted']);
}
?>
Helvetica,
sans-serif">Service Room Number:

3D"spacer" width=3D"200"
height=3D"1"> 
Helvetica,
sans-serif">
Helvetica,
sans-serif">DETAILS OF WORK: 

serif">


Helvetica,
sans-serif">   Service(s)
selected:


foreach($checkBoxes as
$checkBox) {
=09
if(isset($_POST[$checkBox])) {
echo
" sans-serif'>
  • $checkBox
  • ";
    }

    }
    ?>

    Helvetica,
    sans-serif">Need Assistance?

    sans-serif">Online:



    sans-serif">In
    Person:
    sans-serif">105 Rod K. Shaw Building (On the corner of Call and Dewey)


    sans-serif">By
    Phone: 644-HELP



    Email: href=3D"maito:Customer_Care@otc.fsu.edu">Customer_Care@otc.f su.edu O
    NT>



    sans-serif">Thank
    you again for the opportunity to be of service.







    OTC Online Order Confirmation


    bgColor=3D#ffffff>





    //copy current buffer contents into $message variable and delete current
    output buffer
    $message =3D ob_get_clean();
    //send the email
    $mail_sent =3D @mail( $to, $subject, $message, $headers );
    //if the message is sent successfully print "Mail sent". Otherwise print
    "Mail failed"=20
    echo $mail_sent ? "
    Please =
    print
    for your records. An email has been sent to OTC, the contact
    email,
    the budget manager email and the email of the OMNI-specified
    Budget Manager.

    " : " size=3D'2'>Please print for your records and call 644-HELP.
    Confirmation e-mail FAILED!

    ";
    ?>
    =20
    sans-serif"> alt=3D"confirmation
    banner" width=3D"625" height=3D"65">

    Confirmation Information

    cellpadding=3D"4"
    cellspacing=3D"0">





































    Helvetica, sans-serif">ORDER
    INFORMATION:       color=3D"#990000">        
    if(isset($_POST['Estimate'])){
    echo ($_POST['Estimate']);
    }
    ?>
    Helvetica, sans-serif">Order Number:  face=3D"Verdana,
    Arial, Helvetica, sans-serif"> ?>
    face=3D"Verdana,
    Arial, Helvetica, sans-serif">Your Consultant: 

    3D"spacer" width=3D"200"
    height=3D"1">
    Arial,
    Helvetica, sans-serif"> ?>
    face=3D"Verdana, Arial, Helvetica, sans-serif">CONTACT
    INFORMATION: 
    face=3D"Verdana,
    Arial, Helvetica, sans-serif">Completion of this request will be
    coordinated through you by your consultant (10 business day average
    turnaround; some exceptions apply.) Additional information should be
    sent to href=3D"maito:Customer_Care@otc.fsu.edu">Customer_Care@otc.f su.edu. F
    ONT>
    Helvetica, sans-serif">Contact Name:  Helvetica,
    sans-serif">
    sans-serif">  Helvetica,
    sans-serif">Contact E-mail: 
    Helvetica,
    sans-serif">
    Helvetica, sans-serif">Contact Room:  Helvetica,
    sans-serif">
    Helvetica, sans-serif">Contact Bldg/Location:  Helvetica,
    sans-serif">
    if (isset($_POST['Contact_Bldg'])) {=20
    echo ($_POST['Contact_Bldg']);
    }
    if (isset($_POST['Contact_Bldg_Unlisted'])) {=20
    echo ('
    '.$_POST['Contact_Bldg_Unlisted']);
    }
    ?>
    Helvetica, sans-serif">Contact Phone: 

    3D"spacer" width=3D"200"
    height=3D"1">
    Arial,
    Helvetica, sans-serif"> ?>


    cellpadding=3D"4"
    cellspacing=3D"0">































    Helvetica, sans-serif">DEPARTMENT BILLING
    INFORMATION:
    face=3D"Verdana, Arial, Helvetica, sans-serif">Department Name: 
    face=3D"Verdana,
    Arial, Helvetica, sans-serif">
    if
    (isset($_POST['Department_Name'])) {=20
    echo
    ($_POST['Department_Name']);
    }
    if
    (isset($_POST['Department_Unlisted'])) {=20
    echo
    ('
    '.$_POST['Department_Unlisted']);
    }
    ?>
    face=3D"Verdana, Arial, Helvetica, sans-serif">Budget Manager/

    Authorized Signature: 
    face=3D"Verdana,
    Arial, Helvetica, sans-serif"> ($_POST['Budget_Auth_Signature']); ?>
    face=3D"Verdana, Arial, Helvetica, sans-serif">Budget Mgr Phone
    No: 
    face=3D"Verdana,
    Arial, Helvetica, sans-serif"> ?>
    face=3D"Verdana, Arial, Helvetica, sans-serif">Budget Mgr
    E-Mail: 

    3D"spacer" width=3D"200"
    height=3D"1">
    Arial,
    Helvetica, sans-serif"> ?>

    face=3D"Verdana, Arial, Helvetica, sans-serif">The following
    information was pulled from FSU's OMNI System. The Budget Manager listed
    below will be informed via email of this order. If this information is
    incorrect, please report it to your Budget Manager
    immediately.

    face=3D"Verdana, Arial, Helvetica, sans-serif">Budget Manager in
    OMNI--

    MONTHLY: 
    bgcolor=3D"#F2F2F2"> sans-serif"> -
    face=3D"Verdana, Arial, Helvetica, sans-serif">ONE-TIME (if
    applicable)


    3D"spacer" width=3D"200"
    height=3D"1">
    bgcolor=3D"#F2F2F2"> sans-serif"> -

    cellpadding=3D"4"
    cellspacing=3D"0">



























    face=3D"Verdana, Arial, Helvetica, sans-serif"> MONTHLY CHARGE
    INFORMATION
    Arial,
    Helvetica, sans-serif">OMNI Fund Code: 
    Helvetica,
    sans-serif"> ?>
    Arial,
    Helvetica, sans-serif">Department ID: 
    Helvetica,
    sans-serif"> ?>
    Arial,
    Helvetica, sans-serif">Project Code: 
    Helvetica,
    sans-serif"> ?>
    Arial,
    Helvetica, sans-serif">Chartfield 1: 
    Helvetica,
    sans-serif">
    =09
    if(isset($_POST['ChartField_1'])){
    echo
    ($_POST['ChartField_1']);=20
    }
    ?>
    Arial,
    Helvetica, sans-serif">Chartfield 2: 
    Helvetica,
    sans-serif">
    =09
    if(isset($_POST['ChartField_2'])){
    echo
    ($_POST['ChartField_2']);=20
    }
    ?>
    Arial,
    Helvetica, sans-serif">Chartfield 3: 
    Helvetica,
    sans-serif">
    =09
    if(isset($_POST['ChartField_3'])){
    echo
    ($_POST['ChartField_3']);=20
    }
    ?>

    cellpadding=3D"4"
    cellspacing=3D"0">















    face=3D"Verdana, Arial, Helvetica, sans-serif"> ONE-TIME CHARGE
    INFORMATION
    Arial,
    Helvetica, sans-serif">OMNI Fund Code: 
    Helvetica,
    sans-serif"> ?>
    Arial,
    Helvetica, sans-serif">Department ID: 
    Helvetica,
    sans-serif"> ?>
    Arial,
    Helvetica, sans-serif">Project Code: 
    Helvetica,
    sans-serif"> ?>

    cellpadding=3D"4"
    cellspacing=3D"0">























    Helvetica, sans-serif">SERVICE INFORMATION: 
    Arial,
    Helvetica, sans-serif">Service Building
    Address: 
    Helvetica,
    sans-serif">
    if (isset($_POST['Service_Location_Bldg'])) {=20
    echo ($_POST['Service_Location_Bldg']);
    }
    if (isset($_POST['Service_Location_Unlisted'])) {=20
    echo
    ('
    '.$_POST['Service_Location_Unlisted']);
    }
    ?>
    Arial,
    Helvetica, sans-serif">Service Room Number:

    3D"spacer" width=3D"200"
    height=3D"1"> 
    Helvetica,
    sans-serif"> ?>
    Helvetica, sans-serif">DETAILS OF WORK: 

    sans-serif"> ?>


    Helvetica, sans-serif">   Service(s)
    selected:



    sans-serif">
    foreach($checkBoxes as
    $checkBox) {
    =09
    if(isset($_POST[$checkBox])) {
    echo
    " sans-serif'>
  • $checkBox
  • ";
    }

    }
    ?>


    Helvetica, sans-serif">Need Assistance?

    sans-serif">Online:




    • Helvetica,
      sans-serif"> Getting Started: href=3D"http://www.otc.fsu.edu/GS.html"
      target=3D"_blank">http://www.otc.fsu.edu/GS.html

    • sans-serif"> Department Menu: href=3D"http://www.otc.fsu.edu/Department/DeptMenu.html"
      target=3D"_blank">http://www.otc.fsu.edu/Department/DeptMenu .html
      (Look for the link to Instructions)

    • sans-serif"> OTC Home: target=3D"_blank">http://www.otc.fsu.edu/


    sans-serif">In Person: 105 Rod K. Shaw Building (On the corner of
    Call and Dewey)


    sans-serif">By Phone: 644-HELP


    sans-serif">
    Email: href=3D"maito:Customer_Care@otc.fsu.edu">Customer_Care@otc.f su.edu >



    sans-serif">Thank you again for the opportunity to be of
    service.






    -----Original Message-----
    From: OKi98 [mailto:oki98@centrum.cz]=20
    Sent: Monday, October 15, 2007 2:06 PM
    To: VanBuskirk, Patricia
    Cc: Instruct ICC; php-db@lists.php.net
    Subject: Re: [PHP-DB] php maximum characters in text field

    VanBuskirk, Patricia napsal(a):
    > It isn't sending to MySql, we use FileMaker Pro 9. A new record did
    not get made in the d'base... the confirmation email went out, but
    wherever info was supposed to kick back from the d'base (ie. Order
    number), it showed an "undefined variable" error.
    >
    > -----Original Message-----
    > From: Instruct ICC [mailto:instructicc@hotmail.com]=20
    > Sent: Monday, October 15, 2007 1:05 PM
    > To: php-db@lists.php.net
    > Subject: RE: [PHP-DB] php maximum characters in text field
    >
    >
    > =20
    >> I am starting to believe it is NOT the character length that is
    causing the problem. We have received other orders with more in it than
    that, and they came in ok. I think there may be something in the input
    that php does not like. I've been searching for code that will "clean
    up" input, possibly preg_replace?
    >> =20
    >
    > Was the order received, but the text was shorter than expected?
    > Or was the order not "received" at all?
    >
    > Check your mysql query log. It may show failed queries where bad
    characters made the query fail, perhaps using ' or "?
    > Use mysql_real_escape_string.
    > ____________________________________________________________ _____
    > Climb to the top of the charts! Play Star Shuffle: the word scramble
    challenge with star power.
    >
    http://club.live.com/star_shuffle.aspx?icid=3Dstarshuffle_wl mailtextlink_=
    o
    ct
    > =20
    post the code (form + script that proccesses passed variables +=20
    print_r($_POST) ), it'll make the things much quicker.

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    RE: php maximum characters in text field

    am 15.10.2007 21:09:52 von pvanbuskirk

    Here is the exact text he submitted:

    Please initiate phone lines in the following locations in the Leon
    County Civic Center to support our home Men's and Women's Basketball
    games. Meeting room B: activate 4 lines on the North Wall and 4 lines on
    the South Wall - all lines should have long distance with credit card
    only. Courtside: 1 - Please re-activate saved phone number 224-8790
    along the West side press row. Please include long distance on the
    phone. 2 - Please activate the ISDN line on the East side scorer's
    table. 3 - Please re-activate the saved phone number 224-1155 on the
    East side scorer's table. Work room: Please activate 2 lines in the work
    room, one for telephone and one for fax. - Both with long distance
    capability Please call, e-mail or fax the telephone numbers associated
    with each location to Stuart Pearce at 644-4694 (office), 645-3278
    (fax), spearce@mailer.fsu.edu. Thank you, Stuart Pearce



    -----Original Message-----
    From: Bastien Koert [mailto:bastien_k@hotmail.com]=20
    Sent: Monday, October 15, 2007 1:48 PM
    To: VanBuskirk, Patricia; Instruct ICC; php-db@lists.php.net
    Subject: RE: [PHP-DB] php maximum characters in text field


    Could it be an '&' ampersand in the data?
    =20
    Bastien> Date: Mon, 15 Oct 2007 13:29:02 -0400> From:
    pvanbuskirk@otc.fsu.edu> To: instructicc@hotmail.com;
    php-db@lists.php.net> Subject: RE: [PHP-DB] php maximum characters in
    text field> > It isn't sending to MySql, we use FileMaker Pro 9. A new
    record did not get made in the d'base... the confirmation email went
    out, but wherever info was supposed to kick back from the d'base (ie.
    Order number), it showed an "undefined variable" error.> > -----Original
    Message-----> From: Instruct ICC [mailto:instructicc@hotmail.com] >
    Sent: Monday, October 15, 2007 1:05 PM> To: php-db@lists.php.net>
    Subject: RE: [PHP-DB] php maximum characters in text field> > > > I am
    starting to believe it is NOT the character length that is causing the
    problem. We have received other orders with more in it than that, and
    they came in ok. I think there may be something in the input that php
    does not like. I've been searching for code that will "clean up" input,
    possibly preg_replace?> > Was the order !
    received, but the text was shorter than expected?> Or was the order not
    "received" at all?> > Check your mysql query log. It may show failed
    queries where bad characters made the query fail, perhaps using ' or "?>
    Use mysql_real_escape_string.>
    ____________________________________________________________ _____> Climb
    to the top of the charts! Play Star Shuffle: the word scramble
    challenge with star power.>
    http://club.live.com/star_shuffle.aspx?icid=3Dstarshuffle_wl mailtextlink_=
    o
    ct> -- > PHP Database Mailing List (http://www.php.net/)> To
    unsubscribe, visit: http://www.php.net/unsub.php> > -- > PHP Database
    Mailing List (http://www.php.net/)> To unsubscribe, visit:
    http://www.php.net/unsub.php>=20
    ____________________________________________________________ _____
    Express yourself with free Messenger emoticons. Get them today!
    http://www.freemessengeremoticons.ca/?icid=3DEMENCA122

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    RE: php maximum characters in text field

    am 15.10.2007 21:29:12 von Instruct ICC

    --_aed0528b-a056-416f-9d1c-8f7b43655dc5_
    Content-Type: text/plain; charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable


    Do you see those apostrophes in that text?

    They need to be properly escaped.

    > Date: Mon, 15 Oct 2007 15:09:52 -0400
    > From: pvanbuskirk@otc.fsu.edu
    > To: bastien_k@hotmail.com; instructicc@hotmail.com; php-db@lists.php.net
    > Subject: RE: [PHP-DB] php maximum characters in text field
    >=20
    > Here is the exact text he submitted:
    >=20
    > Please initiate phone lines in the following locations in the Leon
    > County Civic Center to support our home Men's and Women's Basketball
    > games. Meeting room B: activate 4 lines on the North Wall and 4 lines on
    > the South Wall - all lines should have long distance with credit card
    > only. Courtside: 1 - Please re-activate saved phone number 224-8790
    > along the West side press row. Please include long distance on the
    > phone. 2 - Please activate the ISDN line on the East side scorer's
    > table. 3 - Please re-activate the saved phone number 224-1155 on the
    > East side scorer's table. Work room: Please activate 2 lines in the work
    > room, one for telephone and one for fax. - Both with long distance
    > capability Please call, e-mail or fax the telephone numbers associated
    > with each location to Stuart Pearce at 644-4694 (office), 645-3278
    > (fax), spearce@mailer.fsu.edu. Thank you, Stuart Pearce


    ____________________________________________________________ _____
    Help yourself to FREE treats served up daily at the Messenger Caf=E9. Stop =
    by today.
    http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid =3DTXT_TAGLM_Oc=
    tWLtagline=

    --_aed0528b-a056-416f-9d1c-8f7b43655dc5_--

    RE: php maximum characters in text field

    am 17.10.2007 18:40:04 von pvanbuskirk

    Does anyone know how to look for a "Curly quote" or "typographer's =
    quotation mark". They are being submitted on our form under customer =
    description. I have created a function that replaces a regular straight =
    quotation mark ($title =3D str_replace("'", "", $title);), but do not =
    know what to put in as the "look for" for the curly mark!

    -----Original Message-----
    From: Instruct ICC [mailto:instructicc@hotmail.com]=20
    Sent: Monday, October 15, 2007 3:29 PM
    To: php-db@lists.php.net
    Subject: RE: [PHP-DB] php maximum characters in text field


    Do you see those apostrophes in that text?

    They need to be properly escaped.

    > Date: Mon, 15 Oct 2007 15:09:52 -0400
    > From: pvanbuskirk@otc.fsu.edu
    > To: bastien_k@hotmail.com; instructicc@hotmail.com; =
    php-db@lists.php.net
    > Subject: RE: [PHP-DB] php maximum characters in text field
    >=20
    > Here is the exact text he submitted:
    >=20
    > Please initiate phone lines in the following locations in the Leon
    > County Civic Center to support our home Men's and Women's Basketball
    > games. Meeting room B: activate 4 lines on the North Wall and 4 lines =
    on
    > the South Wall - all lines should have long distance with credit card
    > only. Courtside: 1 - Please re-activate saved phone number 224-8790
    > along the West side press row. Please include long distance on the
    > phone. 2 - Please activate the ISDN line on the East side scorer's
    > table. 3 - Please re-activate the saved phone number 224-1155 on the
    > East side scorer's table. Work room: Please activate 2 lines in the =
    work
    > room, one for telephone and one for fax. - Both with long distance
    > capability Please call, e-mail or fax the telephone numbers associated
    > with each location to Stuart Pearce at 644-4694 (office), 645-3278
    > (fax), spearce@mailer.fsu.edu. Thank you, Stuart Pearce


    ____________________________________________________________ _____
    Help yourself to FREE treats served up daily at the Messenger Caf=E9. =
    Stop by today.
    http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid =3DTXT_TAGLM_=
    OctWLtagline

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    RE: php maximum characters in text field

    am 17.10.2007 19:53:49 von Instruct ICC

    > Does anyone know how to look for a "Curly quote" or "typographer's quotat=
    ion mark". They are being submitted on our form under customer description.=
    I have created a function that replaces a regular straight quotation mark =
    ($title =3D str_replace("'", "", $title);), but do not know what to put in =
    as the "look for" for the curly mark!

    How do you know they are submitting ?
    Can you copy from that source, then paste it into your str_replace functio=
    n?

    Or since it seems to be a two-byte character (I didn't see it at asciitable=
    ..com):
    Maybe you need http://php.he.net/manual/en/ref.mbstring.php
    mb_ereg_replace

    ____________________________________________________________ _____
    Peek-a-boo FREE Tricks & Treats for You!
    http://www.reallivemoms.com?ocid=3DTXT_TAGHM&loc=3Dus=

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    RE: php maximum characters in text field

    am 17.10.2007 20:10:22 von pvanbuskirk

    I was able to copy and paste from the customer's email exactly what they
    were trying to submit. When I back-spaced out their single quote and
    put in my own, it worked fine. That's how I narrowed it down to that
    particular character. With much help from a coworker, I was able to
    implement some functions, and call them BEFORE php tries to create the
    new record in the database. That was my biggest problem ... I put the
    cleanup code in the wrong place, after the new record command. However,
    here's what the function looks like (it also gets out ~'s:

    function convert_smart_quotes($string)=20
    {
    $search =3D array(chr(145),
    chr(146),
    chr(147),
    chr(148),
    chr(151));
    $replace =3D array("'",
    "'",
    '"',
    '"',
    '-');
    return str_replace($search, $replace, $string); }


    -----Original Message-----
    From: Instruct ICC [mailto:instructicc@hotmail.com]=20
    Sent: Wednesday, October 17, 2007 1:54 PM
    To: php-db@lists.php.net
    Subject: RE: [PHP-DB] php maximum characters in text field


    > Does anyone know how to look for a "Curly quote" or "typographer's
    quotation mark". They are being submitted on our form under customer
    description. I have created a function that replaces a regular straight
    quotation mark ($title =3D str_replace("'", "", $title);), but do not =
    know
    what to put in as the "look for" for the curly mark!

    How do you know they are submitting ?
    Can you copy from that source, then paste it into your str_replace
    function?

    Or since it seems to be a two-byte character (I didn't see it at
    asciitable.com):
    Maybe you need http://php.he.net/manual/en/ref.mbstring.php
    mb_ereg_replace

    ____________________________________________________________ _____
    Peek-a-boo FREE Tricks & Treats for You!
    http://www.reallivemoms.com?ocid=3DTXT_TAGHM&loc=3Dus
    --=20
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    Re: php maximum characters in text field

    am 17.10.2007 23:39:22 von Niel Archer

    Hi

    > Does anyone know how to look for a "Curly quote" or "typographer's quotation mark".

    Do you mean the equivalent of the left and right double quote entities
    in HTML (or 66's and 99's as we called them at school)?


    --
    Niel Archer

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    RE: php maximum characters in text field

    am 18.10.2007 13:29:14 von pvanbuskirk

    I have always called them curly quotes and when I Googled "curly quotes
    in php", I came up with the script I sent yesterday. But, I think you
    are right.


    -----Original Message-----
    From: Niel Archer [mailto:not@chance.now]=20
    Sent: Wednesday, October 17, 2007 5:39 PM
    To: php-db@lists.php.net
    Subject: Re: [PHP-DB] php maximum characters in text field

    Hi

    > Does anyone know how to look for a "Curly quote" or "typographer's
    quotation mark".

    Do you mean the equivalent of the left and right double quote entities
    in HTML (or 66's and 99's as we called them at school)?


    --
    Niel Archer

    --=20
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php

    email HTML code showing in Eudora

    am 18.10.2007 17:15:45 von pvanbuskirk

    I have the following code that so for works perfect for all email
    programs EXCEPT Eudora. With Eudora, the entire code after the first
    ?>, starting at "--PHP-alt" just pops into the body of the email.
    Anyone know of a fix for Eudora that will still allow the rest of the
    world to see it correctly?

    //define the receiver of the email
    $to =3D 'youraddress@example.com';
    //define the subject of the email
    $subject =3D 'Test HTML email';=20
    //create a boundary string. It must be unique=20
    //so we use the MD5 algorithm to generate a random hash
    $random_hash =3D md5(date('r', time()));=20
    //define the headers we want passed. Note that they are separated with
    \r\n
    $headers =3D "From: webmaster@example.com\r\nReply-To:
    webmaster@example.com";
    //add boundary string and mime type specification
    $headers .=3D "\r\nContent-Type: multipart/alternative;
    boundary=3D\"PHP-alt-".$random_hash."\"";=20
    //define the body of the message.
    ob_start(); //Turn on output buffering
    ?>
    --PHP-alt- =20
    Content-Type: text/plain; charset=3D"iso-8859-1"=20
    Content-Transfer-Encoding: 7bit

    Hello World!!!=20
    This is simple text email message.=20

    --PHP-alt- =20
    Content-Type: text/html; charset=3D"iso-8859-1"=20
    Content-Transfer-Encoding: 7bit

    Hello World!


    This is something with HTML formatting.

    =20

    --PHP-alt---
    //copy current buffer contents into $message variable and delete current
    output buffer
    $message =3D ob_get_clean();
    //send the email
    $mail_sent =3D @mail( $to, $subject, $message, $headers );
    //if the message is sent successfully print "Mail sent". Otherwise print
    "Mail failed"=20
    echo $mail_sent ? "Mail sent" : "Mail failed";
    ?>

    --
    PHP Database Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php